<template>
    <div class="app-container">
        <el-form >
          <el-form-item label="主题" prop="elSubject">
            <!-- <el-input v-model="form.elSubject" placeholder="请输入主题" /> -->
            {{ form.elSubject}}
          </el-form-item>
          <el-form-item label="发送人" prop="elSend">
            {{form.elSend}}
          </el-form-item>
          <el-form-item label="接收人" prop="elRecive">
            {{form.elRecive}}
          </el-form-item>
            <div class="aa" v-html="form.elMessage" />
        </el-form>
    </div>
  </template>
  
  <script>
import { listEmail, getEmail, delEmail, addEmail, updateEmail } from "@/api/system/email";
  
  export default {
    name: "emaildetails",
    data() {
      return {
        // 表单参数
        form: {},
        // 表单校验
        queryParams: {
        pageNum: 1,
        pageSize: 10,
        elId:null,
        elSubject: null,
        elMessage: null,
        elSend: null,
        elRecive: null,
        elCopy: null,
        elSetTime: null,
        elState: null,
        elSendTime: null,
        elResult: null,
      },
      };
    },
    created() {
      this.infoId = this.$route.query.elId
      this.getList()
    },
    methods: {
      getList() {
        this.queryParams.elId= this.infoId
        debugger
        this.loading = true;
        listEmail(this.queryParams).then(response => {
        this.form = response.rows[0];
        });
      },
    }
  };
  </script>
  <style>
    .aa img {
        width:800px;
}
  </style>
  